home *** CD-ROM | disk | FTP | other *** search
- /************************************************/
- /* Sample DLL's */
- /* Copyright © Vincent Parsons 1989. */
- /************************************************/
- /* DLL code for MPW C 3.0 or THINK C 4.0 */
- /* with Excel for the Macintosh 2.2 */
- /* and Microsoft C 5.1 */
- /* with Excel for Windows 2.1 */
- /************************************************/
- /* SampAAA is an example of two data type A */
- /* inputs and one data type A output. The */
- /* output is the logical AND of the two inputs. */
- /************************************************/
- /* =REGISTER("SampDLLs","SampAAA","AAA") */
- /* for both the Mac and the PC. */
- /************************************************/
-
- #include "DLL.h"
-
- #if applec
- #include <Types.h>
-
- #elif MSDOS
- #include <windows.h>
-
- #endif
-
- #if THINK_C
- pascal unsigned short main(unsigned short b1, unsigned short b2); /* prototype */
-
- pascal unsigned short main(b1, b2)
- unsigned short b1;
- unsigned short b2;
-
- #elif applec
- pascal unsigned short SampAAA(unsigned short b1, unsigned short b2)
-
- #elif MSDOS
- unsigned short far pascal SampAAA(unsigned short b1, unsigned short b2)
- #endif
- {
- /* Returned parameter is the logical AND of the two inputs */
- return (b1 & b2);
- }
-
- /************************************************/
-
-